Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 7: Scaling Shapes

../ch07/07fig05b.gif
Figure 7.5b

Scaling down by 0.5 in the X-axis direction and building a sphere.

07fig05b.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Transform {
    scale 0.5 1.0 1.0
    children [
        Shape {
            appearance Appearance {
                material Material { }
            }
            geometry Sphere { }
        }
    ]
}